package com.sakura.util.annotationPractice.NotNull;

import javax.validation.constraints.NotNull;

/**
 * Created by apple on 2018/7/18.
 */
public class NotNullTest {
    @NotNull private String name;

    public NotNullTest(String name) {
        this.name = name;
    }

    public void testValid(NotNullTest notNullTest){
        System.out.println("test");
    }

    public static void main(String[] args) {
        NotNullTest notNullTest = new NotNullTest(null);

    }
}
